<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="/public/kindeditor/plugins/code/prettify.css"  rel="stylesheet" type="text/css">
    <script charset="utf-8" src="/public/kindeditor/kindeditor-all.js"></script>
    <script charset="utf-8" src="/public/kindeditor/lang/zh-CN.js"></script>
</head>
<body>
<textarea id="editor_id" name="content" style="width:850px;height:400px;">
</textarea>
<pre class="prettyprint lang-php">&lt;?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once 'application/controllers/BaseController.php';

class Admin extends BaseController
{
    public function index()
    {
        $data['actTab'] = 'dev_lists';
        $data['bcList'] = '&lt;li&gt;&lt;i class="fa fa-angle-right"&gt;&lt;/i&gt;&lt;span&gt;消息列表&lt;/span&gt;&lt;/li&gt;';
        $js = '&lt;script src="/public/echarts/echarts.min.js"&gt;&lt;/script&gt;';
        $js .= '&lt;script src="/public/echarts/index.js"&gt;&lt;/script&gt;';
        $content = $this-&gt;load-&gt;view("index/index", $data, TRUE);
        $this-&gt;mp_main-&gt;Show_Portal($content, '', '消息管理', $data, $js);
    }

    public function lists()
    {
        $this-&gt;load-&gt;view("index/list");
    }

}</pre>
</body>
<script src="/public/kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript">prettyPrint();</script>
<script>
    KindEditor.ready(function(K) {
        window.editor = K.create('#editor_id');
    });
</script>
</html>